package ch.reevolt.curchod.model;

import javax.swing.table.AbstractTableModel;

public class HistoricModel extends AbstractTableModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6357440186986689386L;

	private String[] header = { "Prénom", "Nom", "Outil", "Déscription", "Entrée/sortie", "Date" };

	private String[][] content = { { "Prénom", "Nom", "Outil", "Déscription", "Entrée/sortie", "Date" } };

	public HistoricModel() {
		super();
	}

	public void setContent(String[][] content) {
		this.content = content;
		for (int i = 0; i < content.length; i++) {
		}
	}

	@Override
	public Object getValueAt(int rowIndex, int columnIndex) {
		return content[rowIndex][columnIndex];
	}

	@Override
	public int getColumnCount() {
		return header.length;
	}

	@Override
	public int getRowCount() {
		return content.length;
	}

	@Override
	public String getColumnName(int columnIndex) {
		return header[columnIndex];
	}

}
